<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>
            Dandenong Community Advisory Centre
        </title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <!-- Le styles -->

        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
        <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    
        <?php echo $this->Html->script('bootstrap.js'); ?>
        <?php echo $this->Html->script('nicEdit.js'); ?>
        <?php echo $this->Html->script('nicEditScript.js'); ?>

        <!-- Jquery FULL calendar -->
        <?php echo $this->Html->css('fullcalendar.css'); ?>
        <?php echo $this->Html->script('jquery-ui-1.10.3.custom.min'); ?>        
        <?php echo $this->Html->script('fullcalendar.js'); ?>
        <?php echo $this->Html->script('jquery.qtip-1.0.0-rc3.min.js'); ?>
        
        <?php echo $this->Html->script('http://maps.google.com/maps/api/js?sensor=true'); ?> 
        <script src="//google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>   
        <?php echo $this->fetch('script'); ?>


        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        <?php
        echo $this->Html->css('bootstrap.css');
        echo $this->Html->css('cake.generic');
        echo $this->fetch('meta');
        echo $this->fetch('css');
        ?>

    </head>

    <body>
        <?php echo $this->element('google-analytics'); ?>
        <!-- Header section, contains logo and nav bar -->
        <div class="container">
            <div class="row">
                <div class="col-lg-10 col-offset-1 hidden-sm">
                    <?php echo $this->Html->image('head.jpg', array('alt' => 'Dandenong Community Advisory Bureau', 'border' => '0', 'width' => '100%')); ?>
                </div>       
            </div>
            <!-- nav bar contents -->
            <div class="row">
                <div class="col-lg-10 col-offset-1">
                    <?php
                    echo $this->element('../menus/menu');
                    ?>
                </div>
            </div>

            <div class="row col-lg-10 col-offset-1 testi ">

                <?php if (!$this->Session->read('Auth.User')) { ?>           
                    <div class="col-lg-8">
                        <?php echo $this->Session->flash(); ?>
                        <?php echo $this->fetch('content'); ?>
                    </div>
                    <div class="col-lg-2 pull-right ">
                        <table border="0">
                            <tr>
                                <th><h4>Find Us</h4></th>
                            </tr>
                            <tr>
                                <td><?php echo $this->element('../Pages/sidebartop'); ?></td>
                            </tr>                           
                        </table>
                    </div>



<?php } else { ?>
                    <div class="col-lg-10 testi">
                    <?php echo $this->Session->flash(); ?>
                    <?php echo $this->fetch('content'); ?>
                    </div>
                    <?php } ?>

            </div>

            <!-- footer -->


            <div class="row">
                <div class="col-lg-10 col-offset-1">
                    <div class="navbar">                 
                        <div class="container">  
                            <ul class="nav navbar-nav">  
                                <li>  
<?php
if ($this->Session->read('Auth.User')) {
    echo $this->Html->link('Logout', array('controller' => 'users', 'action' => 'logout'));
} else {
    echo $this->Html->link('Login', array('controller' => 'users', 'action' => 'login'));
}
?></li>
                                <li><?php echo $this->Html->link('Privacy Statement', '/contents/view/Privacy'); ?> </li>
                                <li><?php echo $this->Html->link('Disclaimer', '/contents/view/Disclaimer'); ?> </li>

                            </ul>
                        </div>
                    </div>
                </div>           
            </div> 
        </div>

    </body>
</html>
